package com.itheima.Test1;

import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;

public class TestHashMap {
    public static void main(String[] args) throws ClassNotFoundException, NoSuchFieldException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException {
        Class clazz = Class.forName("java.util.HashMap");

        Field field = clazz.getDeclaredField("DEFAULT_LOAD_FACTOR");
                field.setAccessible(true);


        //Constructor constructor1 = clazz.getDeclaredConstructor();

        HashMap hm = (HashMap) clazz.newInstance();
        Object o = field.get(hm);
        System.out.println(o);

    }
}
